<template>
  <div class="big-box">
    <Header title="设置"></Header>
    <van-button type="primary" block @click="quit">退出登录</van-button>
  </div>
</template>

<script>
export default {
  methods: {
    quit() {
      this.$router.push({
        path: "/login",
      });
      localStorage.removeItem("userId");
      localStorage.removeItem("authToken");
    },
  },
};
</script>

<style lang="scss" scoped>
.big-box {
  background-color: pink;
}
</style>

